package com.jxb.myshop.common;

/**
 * @author: JXB
 * 设置统一返回数据类型的
 * 常量以及
 * 对应编码和编码的信息说明
 */
public enum ResponseCode {
    FAIL(0,"失败"),
    SUCCESS(1,"成功"),
    NOT_LOGIN(2,"未登录"),
    IS_LOGIN(3,"已登录");
    private int code;
    private String msg;

    ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    ResponseCode() {
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
